//go:build windows
// +build windows

package service

import "gitee.com/liumou_site/logger"

// InstallService 安装Windows系统服务
func InstallService(serviceName string, interval int) error {
	logger.Info("正在安装Windows系统服务: %s", serviceName)
	service := NewServiceWindows(serviceName, interval)
	return service.Create()
}

// UninstallService 卸载Windows系统服务
func UninstallService(serviceName string) error {
	logger.Info("正在卸载Windows系统服务: %s", serviceName)
	service := NewServiceWindows(serviceName, 0)
	return service.Remove()
}